import request from '@/utils/request'

export function getPermissionTree(data) {
  return request({
    url: '/admin/system/permission/tree',
    method: 'get',
    params: data
  })
}

export function createPermission(data) {
  return request({
    url: '/admin/system/permission/create',
    method: 'post',
    data: data
  })
}
export function updatePermission(data) {
  return request({
    url: '/admin/system/permission/update',
    method: 'post',
    data: data
  })
}
export function deletePermission(data) {
  return request({
    url: '/admin/system/permission/delete',
    method: 'post',
    data: data
  })
}
